from gameset.phoenicia.base import *

from .wood import Firewood


class Clay(RawMaterial):
    singular =_ ('Clay')
    plural   =_ ('Clay')
    price    =_ (30)


class Pottery(ProcessedMaterial):
    singular =_ ('Pottery')
    plural   =_ ('Pottery')
    price    =_ (250)


class ClayPit(Workshop):
    name     =_ ('Clay Pit')
    color    =_ (Red.with_value(0.4).with_saturation(0.5))
    cost     =_ (100)
    staff    =_ (10)
    size     =_ (2)
    produces =_ (Production(output = Clay(1), duration = 0.5))


class Kiln(Workshop):
    name     =_ ('Kiln')
    color    =_ ((Red + Orange).with_value(0.6))
    cost     =_ (200)
    staff    =_ (15)
    produces =_ (Production(input = (Clay(8), Firewood(1)), output = Pottery(4), duration = 0.5))
